package Java集合面试题;

/**
 * 项目名称：Demo01
 * 类 名 称：UserEntity
 * 类 描 述：TODO
 * 创建时间：2021/03/15 19:24
 * 创 建 人：XiaoCoder
 */
public class UserEntity {
    private String name;
    private int age;

    public UserEntity() {
    }

    public UserEntity( String name, int age) {
        this.name = name;
        this.age = age;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
